import request from '@/utils/request'

// 查询返佣记录列表
export function listDCommissionRecord(query) {
  return request({
    url: '/video/DCommissionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询返佣记录详细
export function getDCommissionRecord(id) {
  return request({
    url: '/video/DCommissionRecord/' + id,
    method: 'get'
  })
}

// 新增返佣记录
export function addDCommissionRecord(data) {
  return request({
    url: '/video/DCommissionRecord',
    method: 'post',
    data: data
  })
}

// 修改返佣记录
export function updateDCommissionRecord(data) {
  return request({
    url: '/video/DCommissionRecord',
    method: 'put',
    data: data
  })
}

// 删除返佣记录
export function delDCommissionRecord(id) {
  return request({
    url: '/video/DCommissionRecord/' + id,
    method: 'delete'
  })
}
